from PyQt5.QtWidgets import QApplication, QMainWindow
from Ui_gui import Ui_MainWindow
import sys
class MymainFrom(QMainWindow,Ui_MainWindow):
    def __init__(self, parent=None):
        super(MymainFrom, self).__init__(parent)
        self.setupUi(self)
app=QApplication(sys.argv)
win1=MymainFrom()
win1.show()
sys.exit(app.exec_())